home *** CD-ROM | disk | FTP | other *** search
- Echo off
- Rem ***************************************************************************
- Rem * Program Name .. EXAMPLE.BAT *
- Rem * .. checknet EXAMPLE BATch file *
- Rem * .. ^^^^^^^ ^^^ *
- Rem * Created On .... 06/14/90 *
- Rem * By .... Higgins, Inc. *
- Rem * .... *
- Rem * Purpose ....... CheckNet usage example. *
- Rem ***************************************************************************
- Cls
-
- CheckNet
-
- Rem * Remember, the DOS errorlevel is a stack. When errorlevel three is true,
- Rem * errorlevel two, one, and zero are also true. Always evaluate errorlevels
- Rem * heirarchically.
-
- If Errorlevel = 3 Goto USERS
- If Errorlevel = 2 Goto RIGHTS
- If Errorlevel = 1 Goto LOGIN
-
- Echo .
- Echo .
- Echo Backup software would be executed now.
- Echo .
- Echo .
- Goto FINIS
-
- :USERS
- Echo .
- Echo You must logout the above users before you can continue with the backup.
- Pause
- Goto FINIS
-
- :RIGHTS
- Echo .
- Echo Please check your rights to this directory area. You must have rights to
- Echo CREATE files in this directory area. If you have this right or you are
- Echo running this program on a local drive, insure the drive is not full and/or
- Echo you have not exausted all available directory handles.
- Echo .
- Echo You must solve this problem before you can continue with the backup.
- Pause
- Goto FINIS
-
- :LOGIN
- Echo .
- Echo You must log on to the network before you can continue with the backup.
- Pause
- Goto FINIS
-
- :FINIS